package com.example.controller;

import com.example.domain.Manager;
import com.example.mapper.ManagerMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/rc")
public class DemoController {
    @Autowired
    private ManagerMapper managerMapper;

    @RequestMapping("/d2")
    public String m2(){
        return "demo1";
    }
    @RequestMapping("/d3")
    public String m3(){

        return "demo1";
    }
    @RequestMapping("/d4")
    public String m4(){
        Manager manager = managerMapper.selectByPrimaryKey(83);
        System.out.println(manager.getName());
        return "demo1";
    }
}
